import {apiResquest} from '@/common/js/request.js'


//  获取钱包信息
export const wallet = () => {
	return apiResquest({
		url: '/api/web/wallet',
		method: 'GET',
	})
}

//充值
export const recharge = (data) => {
	return apiResquest({
		url: '/api/web/recharge',
		method: 'POST',
		data:data
	})
}

//获取充值订单列表
export const rechargeOrderList = (data) => {
	return apiResquest({
		url: '/api/web/rechargeorderlist',
		method: 'POST',
		data:data
	})
}

//获取充值订单详情
export const rechargeOrderInfo = (data) => {
	return apiResquest({
		url: '/api/app/rechargeorderinfo',
		method: 'POST',
		data:data
	})
}

//获取充值方式列表
export const rechargeMethods = () => {
	return apiResquest({
		url: '/api/web/rechargemethods',
		method: 'GET',
	})
}


// 提现
export const withdrawal = (data) => {
	return apiResquest({
		url: '/api/web/withdrawal',
		method: 'POST',
		data:data
	})
}

//获取提现订单列表
export const withdrawOrderList = (data) => {
	return apiResquest({
		url: '/api/web/withdraworderlist',
		method: 'POST',
		data:data
	})
}
//获取提现订单详情
export const withdrawalOrderInfo = (data) => {
	return apiResquest({
		url: '/api/web/withdrawalorderinfo',
		method: 'POST',
		data:data
	})
}

//获取提现方式
export const withdrawalMethod = () => {
	return apiResquest({
		url: '/api/web/getwithdrawalmethod',
		method: 'GET'
	})
}

//获取提现地址
export const withdrawalAddress = (data) => {
	return apiResquest({
		url: '/api/web/getaddress',
		method: 'POST',
		data:data
	})
}

//绑定提现地址
export const bindWithdrawalAddress= (data) => {
	return apiResquest({
		url: '/api/web/bindaddress',
		method: 'POST',
		data:data
	})
}


